import { attrDefine } from "../../../../defines/attr_define";
import { elementDefine } from "../../../../defines/element_define";
import { equipDefine } from "../../../../defines/equip_define";
import { Goods } from "../../../goods";
import { GoodTypeDefine } from "../../defines/good_type";
import inventory from "./inventory";

/**
 * 模板
 */
export default class GoodNode extends Goods {
	constructor(...params) {
		super(...params);
	}

	getTitle() {
		return "物品";
	}

	getType() {
		return GoodTypeDefine.sundries.key;
	}

	getDesc() {
		return "一个物品";
	}

	getNeedAttr() {
		return {
			[attrDefine.power.key]: 10,
		};
	}

	getDefaultAttr() {
		return {
			[attrDefine.element.key]: [elementDefine.null.key],
			[attrDefine.weight.key]: 10,
			[attrDefine.durable.key]: 10,
			[attrDefine.action.key]: 1
		};
	}

	getDefaultInventory(){
		return inventory;
	}
}